#include <iostream>

#include "dummyserver.h"


DummyPowerboxServer::DummyPowerboxServer(QStringList filenames)
	: QObject()
{
	this->filenames = filenames;
}


QStringList
DummyPowerboxServer::showPowerbox(int, QString, QString, QString, QString,
                                  bool allowMultipleSelections)
{
	if(allowMultipleSelections) return filenames;
	else
	{
		QStringList tmp;
		tmp << filenames.at(rand() % filenames.size());

		return tmp;
	}
}

